package xiangmu.schoolpaper.service.impl.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xiangmu.schoolpaper.mapper.system.SystemStatisticAnalysisMapper;
import xiangmu.schoolpaper.pojo.VO.SystemTeacherInfoVO;
import xiangmu.schoolpaper.service.system.SystemStatisticAnalysisService;

import java.util.ArrayList;
import java.util.List;

@Service
public class SystemStatisticAnalysisServiceImpl implements SystemStatisticAnalysisService {
    @Autowired
    private SystemStatisticAnalysisMapper systemStatisticAnalysisMapper;

//    3获取所有老师工号和姓名
    @Override
    public List<SystemTeacherInfoVO> getAllTeachers() {
        return systemStatisticAnalysisMapper.getAllTeachers();
    }

//    4某年份下所有专业
    @Override
    public List<String> getAllMajorsByYear(Integer year) {
        return systemStatisticAnalysisMapper.getAllMajorsByYear(year);
    }

//    5某年份下所有老师
    @Override
    public List<SystemTeacherInfoVO> getAllTeachersByYear(Integer year) {
        return systemStatisticAnalysisMapper.getAllTeachersByYear(year);
    }

//    6某专业下所有年份
    @Override
    public List<String> getAllYearsByMajor(String major){
        return systemStatisticAnalysisMapper.getAllYearsByMajor(major);
    }

//    7某老师下所有年份
    public List<String> getAllYearsByTeacherAccount(String teacherAccount) {
        return systemStatisticAnalysisMapper.getAllYearsByTeacherAccount(teacherAccount);
    }


}
